#pragma once
#include <ws2tcpip.h>
//#include <iostream>
class WSACleaner {
public:
	~WSACleaner () {
		//std::cout << "WSACleanup" << std::endl;
		WSACleanup ();
	}
};
class SocketCleaner {
public:
	SOCKET socket;
	SocketCleaner (SOCKET toBeCleaned) {
		socket = toBeCleaned;
	}
	~SocketCleaner () {
		//std::cout << "SocketCleanup" << std::endl;
		closesocket (socket);
	}
};